<template>
	<page class="" ref='page'>
		<u-parse :html="info.content"></u-parse>
		<view class="">
			<foot></foot>
		</view>
		<operation  type='4' :info='info' v-if='info'></operation>
	</page>
</template>

<script>
	import {setAddShare} from "@/utils/postRequest.js"
	import {getZxShow} from '../static/api.js'
	import  uParse from '@/components/u-parse/u-parse.vue'
	import foot from '@/components/foot.vue'
	import operation from '@/pagesHome/operation.vue'
	export default {
		components:{
			uParse,
			foot,
			operation
		},
		data() {
			return {
				info:'',
			}
		},
		async onShareAppMessage(res) {
		  await  setAddShare({id:this.info.id,type:4,isErr:false})
		   this.info.transmit ++ 
		  return {
			title: this.info.title,
			imageUrl: this.$global.shareImg,
			path: `/pagesHome/decorateProcess/decorateProcess?invitation_code=${this.$store.state.userInfo ? this.$store.state.userInfo.invitation_code : ''}`,
		  };
		},
		async onShareTimeline(ops) {
		  await  setAddShare({id:this.info.id,type:4,isErr:false})
		   this.info.transmit ++ 
		  return {
			title: this.info.title,
			imageUrl: this.$global.shareImg,
			path: `/pagesHome/decorateProcess/decorateProcess?invitation_code=${this.$store.state.userInfo ? this.$store.state.userInfo.invitation_code : ''}`,
		  };
		},
		methods: {
			getZxShow(){
				getZxShow().then(res=>{
					this.info = res
				})
			}
		},
		onLoad() {
			this.getZxShow()
		}
	}
</script>

<style scoped>
	@import url("./decorateProcess.css");
</style>
